import request from '@/utils/request'

// 查询竞拍保证金列表
export function listDeposit(query) {
  return request({
    url: '/demo/deposit/list',
    method: 'get',
    params: query
  })
}

// 查询竞拍保证金详细
export function getDeposit(depositId) {
  return request({
    url: '/demo/deposit/' + depositId,
    method: 'get'
  })
}

// 新增竞拍保证金
export function addDeposit(data) {
  return request({
    url: '/demo/deposit',
    method: 'post',
    data: data
  })
}

// 修改竞拍保证金
export function updateDeposit(data) {
  return request({
    url: '/demo/deposit',
    method: 'put',
    data: data
  })
}

// 删除竞拍保证金
export function delDeposit(depositId) {
  return request({
    url: '/demo/deposit/' + depositId,
    method: 'delete'
  })
}
